﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.Permission.Models;
using System.Web.Mvc;
using Microhard.Core.Algorithm;
using Microhard.Permission.Interface;
using Microhard.Core;
using Telerik.Web.Mvc;

namespace Microhard.Permission.MVCFilter
{
    public class FilterHelper
    {


        public static bool IsSysAdminAction(string ctrName)
        {
            var adminCtrNames = new string[] { "group", "operation", "permission", "resouce", "role", "user", "resourcetype", "dictionary", "jhwfconfig", "useropreation" };
            if (adminCtrNames.Contains(ctrName.ToLower()))
                return true;
            return false;
        }




    }
}
